package com.rovinj_server.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseItemDraggableAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.rovinj_server.R;
import com.rovinj_server.entity.InventorySub;

import java.util.List;

/**
 * Created by Administrator on 2017/6/23.
 */

public class BlindFIAdapter extends BaseItemDraggableAdapter<InventorySub,BaseViewHolder> {

    public BlindFIAdapter(@Nullable List<InventorySub> data) {
        super(R.layout.blind_recycler_sub_qty, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, InventorySub item) {
         helper.setText(R.id.name1,item.getCode());  //款式（货号）
         helper.setText(R.id.name2,item.getBarode());//条码
         helper.setText(R.id.qty1_num,item.getMoreThan()+""); //多于
         helper.setText(R.id.qty2_num,item.getLessThan()+"");//异差
         helper.setText(R.id.qty3_num,item.getDiscNumber()+"");//盘点
         helper.setText(R.id.qty4_num,item.getSjnumber()+""); //实际
    }
}
